<template>
	<view class="comm">
		<view class="comm-item" v-for="commItme in comm">
			<view class="header">
				<view class="left">
					<u-avatar :size="80" :src="commItme.userUrl"></u-avatar>
					<view class="name">{{commItme.userName}}</view>
				</view>
				<view class="right">
					{{commItme.time}}
				</view>
			</view>
			<view class="info">
				回复<text class="name">{{buserName}}：</text>{{commItme.comm}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		props: {
			comm: Array,
			buserName: {
				type: String,
				default: ''
			}
		}
	}
</script>

<style lang="scss">
	.comm {

		.comm-item {
			padding: 20upx;
			border-bottom: 1upx solid #CCCCCC;
			border-top: 1upx solid #CCCCCC;
			margin-top: -1upx;

			.header {
				display: flex;
				align-items: center;
				justify-content: space-between;

				.left {
					display: flex;
					align-items: center;

					.name {
						margin-left: 20upx;
					}
				}

				.right {
					font-size: 24upx;
				}
			}

			.info {
				margin-left: 40upx;
				margin-top: 20upx;
				margin-bottom: 20upx;

				.name {
					margin: 0upx 2upx;
					color: $tabAction;
				}
			}
		}
	}
</style>
